package com.itheima.test6;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        Fu fu= new Zi();
       Zi zi = new Zi();
        System.out.println(fu.arr[0]);
        System.out.println(fu.arr[0]);
        fu.a();
    }
}
class Fu {
    int[] arr = {1, 1, 1};

    public int[] getArr() {
        return arr;
    }
    public void a() {
        int[] arr = this.getArr();
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
class Zi extends Fu {
    int[] arr = {2, 2, 2};

    public Zi(){
        super();

    }
    @Override
    public int[] getArr() {
        return arr;
    }

}
